#ifndef basicInformation_h__
#define basicInformation_h__

#include <QMetaType>
#include "Task.h"

class TaskManager;
class BasicInformation : public Task
{
    Q_OBJECT;
public:
    BasicInformation(TaskManager *manager);
public:
    void start() override;
private:
    void baiduIndexOpened(QVariantMap arg);
    void loadedIp(QVariantMap arg);
    void taobaoIndexOpened(QVariantMap arg);
    void tradesOpened(QVariantMap arg);
    void rateOpened(QVariantMap arg);
    void accountNickname(QVariantMap arg);
    void registerDateOpened(QVariantMap arg);

    void finishWithSendingNickName();

public:
    bool ip;
    bool trades;
    bool rate;
    bool nickname;
    bool registerDate;
    QString supportKeyword;
private:
    QString fetchedNickname;
private:
    TaskManager *manager = nullptr;
};

#endif // basicInformation_h__
